package com.aos.erp.schools.mapper.student;

import com.aos.erp.common.dao.mapper.SuperMapper;
import com.aos.erp.schools.model.student.Student;
import com.aos.erp.schools.model.student.dto.GovExNewStudentDTO;
import com.aos.erp.schools.model.student.ro.news.NewsRo;
import com.aos.erp.schools.model.student.ro.student.ListByCityIdRpcRo;
import com.aos.erp.schools.model.student.ro.student.SelectStudentRo;
import com.aos.erp.schools.model.student.ro.student.SelectSubmit122Ro;
import com.aos.erp.schools.model.student.vo.news.NewsVo;
import com.aos.erp.schools.model.student.vo.student.StudentAll2Vo;
import com.aos.erp.schools.model.student.vo.student.StudentAllVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * <p>
 * 学员信息表 Mapper 接口
 * </p>
 *
 * @author chb
 * @since 2018-10-31
 */
@Mapper
public interface StudentMapper extends SuperMapper<Student> {

        StudentAllVo queryObject(@Param("id")long id);
        List<StudentAllVo> queryList(IPage<StudentAllVo> pageBean, @Param("ro") SelectStudentRo ro);
        int  updateStudent(Student student);
        int deleteStudent(Long[] ids);
         //根据城市 id  所有学员信息
        List<StudentAllVo> queryListByCityId(IPage<StudentAllVo> pageBean, @Param("ro") ListByCityIdRpcRo ro);
        int getStateStudentNum(@Param("driverId")long driverId);
        List<StudentAllVo> queryListBy122(IPage<StudentAllVo> pageBean, @Param("ro") SelectSubmit122Ro ro);
        int updateNetStatus(Long[] ids);
        int updateNetStatusFaild(List<String> idnumList);
        int signUpOkStatus(List<String> idnumList);
        int signUpFaildStatus( @Param("idNumber")String idNumber);
        List<GovExNewStudentDTO>  queryObjectList(Long[] ids);
        StudentAll2Vo selectAll2Vo(long id);
        int updateNetStatusSuccess( List<String> idnumList);
        List<NewsVo> selectStudentByIdNews(IPage<NewsVo> pageBean, @Param("ro")NewsRo ro);
        List<StudentAllVo> excelStudentExport(Long[] ids);
        //专门修改 学员状态
        int  updateStudentByStatus(@Param("studentId")Long studentId ,@Param("status")int status);
}
